#define  _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main() {
	int x = 0;
	int count = 0;
	do {
		while (x < 2)
		{
			x++;
			count++;
		}
		x++;
	} while (x < 5);
	printf("%d\n", count);


	x = 0;
	count = 0;
	while (x < 2)
	{
		do {
			x++;
			count++;
		} while (x < 5);
		x++;
	}
	printf("%d\n", count);



	int y = 0;
	x = 0;
	count = 0;
	do {
		while (y < 5)
		{
			y++;
			count++;
		}
		x++;
	} while (x < 2);
	printf("%d\n", count);


	x = 0;
	y = 0;
	count = 0;
	while (y < 5)
	{
		do {
			x++;
			count++;
		} while (x < 2);
		y++;
	}
	printf("%d\n", count);
	return 0;
}